package com.demo.connectdbtest.module.common.util;

import com.github.pagehelper.PageInfo;

import java.util.ArrayList;

public class PageUtil {


    public static <T> PageInfo<T> getPageInfoInEmpty(int pageNum, int pageSize) {
        PageInfo<T> pageInfo = new PageInfo<>();
        pageInfo.setPageNum(pageNum);
        pageInfo.setPageSize(pageSize);
        pageInfo.setList(new ArrayList<>());
        pageInfo.setTotal(0);
        return pageInfo;
    }
}
